import request from '@/utils/request'

// 查询用户购买会员记录列表
export function listPayVipRecord(query) {
  return request({
    url: '/weiriya/payVipRecord/list',
    method: 'get',
    params: query
  })
}

// 查询用户购买会员记录详细
export function getPayVipRecord(id) {
  return request({
    url: '/weiriya/payVipRecord/' + id,
    method: 'get'
  })
}

// 新增用户购买会员记录
export function addPayVipRecord(data) {
  return request({
    url: '/weiriya/payVipRecord',
    method: 'post',
    data: data
  })
}

// 修改用户购买会员记录
export function updatePayVipRecord(data) {
  return request({
    url: '/weiriya/payVipRecord',
    method: 'put',
    data: data
  })
}

// 删除用户购买会员记录
export function delPayVipRecord(id) {
  return request({
    url: '/weiriya/payVipRecord/' + id,
    method: 'delete'
  })
}
